import http from '../../utils/request/request'

//返回供应商ID及名称
export function getSupplierInfo() {
    return http({
        url: `/breed/supplier/map`,
        method: 'get'
    })
}

export function getSupplierInfoBypage(page = 1, size = 3) {
    return http({
        url: `/breed/supplier/${size}/${page}`,
        method: 'get'
    })
}
export function editSupplierInfo(data) {
    return http({
        url: `/breed/supplier/`,
        method: 'put',
        data
    })
}
export function addSupplierInfo(data) {
    return http({
        url: `/breed/supplier/`,
        method: 'post',
        data
    })
}
export function deleteSupplier(id) {
    return http({
        url: `/breed/supplier/+${id}`,
        method: 'delete',
        // data: { id }
    })
}
export function deleteSupplierBatch(data) {
    return http({
        url: `/breed/supplier/batch`,
        method: 'delete',
        data
    })
}